package com.yingchao.kgou.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.yingchao.kgou.core.dao.impl.BaseDAOImpl;
import com.yingchao.kgou.dao.${entity_name}DAO;
import com.yingchao.kgou.entity.${entity_name};

@Repository("${entity_name}DAO")
@Transactional
public class ${entity_name}DAOImpl extends BaseDAOImpl<${entity_name},Long> implements ${entity_name}DAO{

	@PersistenceContext(unitName = "tzlUnit")
	private EntityManager entityManager;

	@Override
	public EntityManager getEntityManager() {
		
		return this.entityManager;
	}

}
